package homework_02;

public class Home_01 {
//    已知a,b均是整型变量，写出将a,b两个变量中的值互换的程序。
      public static void main(String[] args) {
          int a = 10;
          int b = 20;

//          a = a + b;
//          b = a - b;
//          a = a - b;

          b = a - b;
          a = a - b;
          b = a + b;

          System.out.println(a);
          System.out.println(b);
      }
}
